
export function saveUserNickname({ email, id, nickname, password, remember }) {
    localStorage.setItem('nickname', nickname)
    localStorage.setItem('email', email)
    localStorage.setItem('id', id)
    if (remember) {
        localStorage.setItem('password', password)
    }
}

export function clearUserInfo() {
    localStorage.clear()
}

export function getUserNickname() {
    return localStorage.getItem('nickname')
}